import request from '@/utils/request'

// 获取订单列表
export function getOrderList(params) {
  return request({
    url: '/api/YzOrder/getPage',
    method: 'POST',
    data: params
  })
}

// 强制取消
export function takeOrderForceCancel(params) {
  return request({
    url: `/api/YzOrder/cancel/${params.id}`,
    method: 'POST',
    data: params
  })
}

// 强制完成
export function takeOrderForceFinish(params) {
  return request({
    url: `/api/YzOrder/done/${params.id}`,
    method: 'POST',
    data: params
  })
}

// 发布订单
export function publishOrder(params) {
  return request({
    url: `/api/YzOrder/submit/${params.id}`,
    method: 'POST',
    data: params
  })
}